//
//  TKYProgressSumCell.m
//  StationHouseHelper
//
//  Created by apple on 2018/6/21.
//  Copyright © 2018年 铁科院. All rights reserved.
//

#import "TKYProgressSumCell.h"
@interface TKYProgressSumCell()
@property (weak, nonatomic) IBOutlet UILabel *progressLabel;

/**
 计划总进度
 */
@property (weak, nonatomic) IBOutlet UILabel *planLabel;
@property (weak, nonatomic) IBOutlet UIProgressView *planProgressView;
/**
计划总进度百分比
*/
@property (weak, nonatomic) IBOutlet UILabel *planProgressLabel;
/**
 实际总进度
 */
@property (weak, nonatomic) IBOutlet UILabel *realityLabel;
@property (weak, nonatomic) IBOutlet UIProgressView *realityProgressView;
/**
 实际总进度百分比
 */
@property (weak, nonatomic) IBOutlet UILabel *realityProgressLabel;

@end
@implementation TKYProgressSumCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.progressLabel.textColor = kUIColorFromRGB(333333, 1);
    self.planLabel.textColor = kUIColorFromRGB(666666, 1);
    self.realityLabel.textColor = kUIColorFromRGB(666666, 1);
    self.planProgressLabel.textColor = kUIColorFromRGB(333333, 1);
    self.realityProgressLabel.textColor = kUIColorFromRGB(333333, 1);
    
    //取消cell点击
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    /**
     计划总进度
     */
    //设定两端弧度
    self.planProgressView.layer.cornerRadius = 3.0;
    self.planProgressView.layer.masksToBounds = YES;
    //设置进度条的颜色
    self.planProgressView.progressTintColor = kRGBColor(34, 130, 255, 1);
    
    //设置进度条的当前值，范围：0~1；
    self.planProgressView.transform = CGAffineTransformMakeScale(1.0f, 3.0f);
    self.planProgressView.progressViewStyle = UIProgressViewStyleDefault;
    
    self.planProgressView.progress = 0.5;
    self.planProgressLabel.text = [NSString stringWithFormat:@"%d%%",50];
    
    /**
     实际总进度
     */
    //设定两端弧度
    self.realityProgressView.layer.cornerRadius = 3.0;
    self.realityProgressView.layer.masksToBounds = YES;
    //设置进度条的颜色
    self.realityProgressView.progressTintColor = kRGBColor(34, 130, 255, 1);
    
    //设置进度条的当前值，范围：0~1；
    self.realityProgressView.transform = CGAffineTransformMakeScale(1.0f, 3.0f);
    self.realityProgressView.progressViewStyle = UIProgressViewStyleDefault;
    
    
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
